package com.gl.saasservice.advertisement.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

/**
 * 广告表
 */
public class SaasAdVO {
    protected Long id;
    /**
     * 广告位id
     */
    private Long spaceId;
    /**
     * 广告名称
     */
    private String name;
    /**
     * 广告开始时间
     */
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publish;
    /**
     * 广告结束时间
     */
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expire;
    /**
     * 广告图
     */
    private String adPic;
    /**
     * 广告链接
     */
    private String adLink;
    /**
     * 上架状态:0未上架、1已上架
     */
    private Integer status;
    /**
     * 审核状态：0未审核、1已审核 2审核不通过
     */
    private Integer auditorStatus;
    /**
     * 审核人
     */
    private Long auditorId;
    /**
     * 创建人
     */
    private Long creatorId;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 广告位名
     */
    private String spaceName;
    /**
     * 公告内容
     */
    private String content;
    @Column(name = "content", nullable = true,columnDefinition = "TEXT")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String  getSpaceName() {
        return spaceName;
    }

    public void setSpaceName(String spaceName) {
        this.spaceName = spaceName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpaceId() {
        return spaceId;
    }

    public void setSpaceId(Long spaceId) {
        this.spaceId = spaceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getPublish() {
        return publish;
    }

    public void setPublish(Date publish) {
        this.publish = publish;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public String getAdPic() {
        return adPic;
    }

    public void setAdPic(String adPic) {
        this.adPic = adPic;
    }

    public String getAdLink() {
        return adLink;
    }

    public void setAdLink(String adLink) {
        this.adLink = adLink;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAuditorStatus() {
        return auditorStatus;
    }

    public void setAuditorStatus(Integer auditorStatus) {
        this.auditorStatus = auditorStatus;
    }

    public Long getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Long auditorId) {
        this.auditorId = auditorId;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
